package com.test.test_rest.blockchain_data.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperGridJobResult implements Serializable {
    private Integer id;

    private Integer jobId;

    /**
     * 参数配置
     */
    private String config;

    /**
     * 盈利
     */
    private BigDecimal profit;

    private Date createTime;

    private Date updateTime;

    /**
     * 任务子ID
     */
    private Integer taskId;

    /**
     * 持仓数量
     */
    private BigDecimal keepSum;

    /**
     * 持仓数量金额
     */
    private BigDecimal keepSumUsdt;

    /**
     * 剩余U数
     */
    private BigDecimal usdtNum;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    /**
     * 参数配置
     */
    public String getConfig() {
        return config;
    }

    /**
     * 参数配置
     */
    public void setConfig(String config) {
        this.config = config;
    }

    /**
     * 盈利
     */
    public BigDecimal getProfit() {
        return profit;
    }

    /**
     * 盈利
     */
    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 任务子ID
     */
    public Integer getTaskId() {
        return taskId;
    }

    /**
     * 任务子ID
     */
    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    /**
     * 持仓数量
     */
    public BigDecimal getKeepSum() {
        return keepSum;
    }

    /**
     * 持仓数量
     */
    public void setKeepSum(BigDecimal keepSum) {
        this.keepSum = keepSum;
    }

    /**
     * 持仓数量金额
     */
    public BigDecimal getKeepSumUsdt() {
        return keepSumUsdt;
    }

    /**
     * 持仓数量金额
     */
    public void setKeepSumUsdt(BigDecimal keepSumUsdt) {
        this.keepSumUsdt = keepSumUsdt;
    }

    /**
     * 剩余U数
     */
    public BigDecimal getUsdtNum() {
        return usdtNum;
    }

    /**
     * 剩余U数
     */
    public void setUsdtNum(BigDecimal usdtNum) {
        this.usdtNum = usdtNum;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", jobId=").append(jobId);
        sb.append(", config=").append(config);
        sb.append(", profit=").append(profit);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", taskId=").append(taskId);
        sb.append(", keepSum=").append(keepSum);
        sb.append(", keepSumUsdt=").append(keepSumUsdt);
        sb.append(", usdtNum=").append(usdtNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperGridJobResult other = (SuperGridJobResult) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getJobId() == null ? other.getJobId() == null : this.getJobId().equals(other.getJobId()))
            && (this.getConfig() == null ? other.getConfig() == null : this.getConfig().equals(other.getConfig()))
            && (this.getProfit() == null ? other.getProfit() == null : this.getProfit().equals(other.getProfit()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getKeepSum() == null ? other.getKeepSum() == null : this.getKeepSum().equals(other.getKeepSum()))
            && (this.getKeepSumUsdt() == null ? other.getKeepSumUsdt() == null : this.getKeepSumUsdt().equals(other.getKeepSumUsdt()))
            && (this.getUsdtNum() == null ? other.getUsdtNum() == null : this.getUsdtNum().equals(other.getUsdtNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getJobId() == null) ? 0 : getJobId().hashCode());
        result = prime * result + ((getConfig() == null) ? 0 : getConfig().hashCode());
        result = prime * result + ((getProfit() == null) ? 0 : getProfit().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getKeepSum() == null) ? 0 : getKeepSum().hashCode());
        result = prime * result + ((getKeepSumUsdt() == null) ? 0 : getKeepSumUsdt().hashCode());
        result = prime * result + ((getUsdtNum() == null) ? 0 : getUsdtNum().hashCode());
        return result;
    }
}